/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.siseventos.util;

import java.util.HashMap;

/**
 *
 * @author marcosnatanpacheco
 */
public class LiteralHashMap<K, V> extends HashMap<K, V> {

    // Campos
    private static final long serialVersionUID = 5957380586139371992L; // Random serialVersionUID for serialization

    // Construtor
    public LiteralHashMap(K[] keys, V[] values) {
        int index = 0;
        if (keys.length > 0 && values.length > 0) {
            while (index < keys.length && index < values.length) {
                K key = keys[index];
                V value = values[index];
                this.put(key, value);
                index++;
            }
        }
    }
}
